﻿using AIO.Entity.Base;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace AIO.Entity
{
    /// 设备维修管理
    [Table("BEA01")]
    public class EquipMaintenance : BaseEntity
    {
        /// <summary>
        /// 设备编号
        /// </summary>
        [Required]
        [Column("BEA001"), MaxLength(100)]
        public string? EquipId { get; set; }

        /// <summary>
        /// 设备故障情况
        /// </summary>
        [Required]
        [Column("BEA002"), MaxLength(100)]
        public string? Fault { get; set; }

        /// <summary>
        /// 维修内容
        /// </summary>
        [Required]
        [Column("BEA003"), MaxLength(100)]
        public string? Content { get; set; }

        /// <summary>
        /// 维修结果
        /// </summary>
        [Required]
        [Column("BEA004"), MaxLength(100)]
        public string? Result { get; set; }

        /// <summary>
        /// 维修日期
        /// </summary>

        [Column("BEA005")]
        [DisplayFormat(DataFormatString = "{0:yyyy-MM-dd}"
            , ApplyFormatInEditMode = true)]
        public DateTime? PurchaseDate { get; set; }

        /// <summary>
        /// 维修单位
        /// </summary>

        [Required]
        [Column("BEA006"), MaxLength(100)]
        public string? Unit { get; set; }

    }
}
